package com.day10.java;

//在测试类中，分别创建两个实现类的对象，调用对应的方法.
// 通过接口名，调用静态方法.
public class LiveAbleTest {
    public static void main(String[] args) {

        Animal2 a = new Animal2();
        a.eat();
        a.sleep();
        a.breathe();

        Plant P = new Plant();
        P.eat();
        P.sleep();
        P.breathe();

        LiveAble.drink();
    }
}